.class public Lcom/waiqin365/base/print/PrintSettingActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Ljava/lang/String;

.field private b:Ljava/lang/String;

.field private c:Landroid/content/Context;

.field private d:Landroid/widget/ImageView;

.field private e:Landroid/widget/ImageView;

.field private f:Landroid/widget/TextView;

.field private g:Ljava/util/ArrayList;

.field private h:Landroid/widget/ListView;

.field private i:Lcom/waiqin365/base/print/g;

.field private j:Landroid/bluetooth/BluetoothDevice;

.field private k:Landroid/view/View;

.field private l:Landroid/widget/ImageView;

.field private m:Landroid/widget/TextView;

.field private n:Landroid/widget/LinearLayout;

.field private o:Landroid/widget/TextView;

.field private p:Landroid/widget/LinearLayout;

.field private q:Landroid/widget/ImageView;

.field private r:Ljava/lang/String;

.field private s:Lcom/waiqin365/compons/view/c;

.field private t:Landroid/view/View;

.field private u:Landroid/widget/PopupWindow;

.field private v:Landroid/widget/TextView;

.field private w:Landroid/widget/TextView;

.field private x:Ljava/lang/String;

.field private y:Z

.field private final z:Landroid/content/BroadcastReceiver;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->j:Landroid/bluetooth/BluetoothDevice;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->r:Ljava/lang/String;

    const-string/jumbo v0, "\u8fd9\u91cc\u6253\u5370\u6d4b\u8bd5\u4fe1\u606f,\u84dd\u7259\u6253\u5370\u673a\u8fde\u63a5\u6210\u529f!\n\n"

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->x:Ljava/lang/String;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->y:Z

    new-instance v0, Lcom/waiqin365/base/print/p;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/print/p;-><init>(Lcom/waiqin365/base/print/PrintSettingActivity;)V

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->z:Landroid/content/BroadcastReceiver;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/print/PrintSettingActivity;Landroid/bluetooth/BluetoothDevice;)Landroid/bluetooth/BluetoothDevice;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->j:Landroid/bluetooth/BluetoothDevice;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->l:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/base/print/PrintSettingActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->r:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/base/print/PrintSettingActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->y:Z

    return p1
.end method

.method static synthetic b(Lcom/waiqin365/base/print/PrintSettingActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->a:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic b(Lcom/waiqin365/base/print/PrintSettingActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->g:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/base/print/PrintSettingActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->r:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/base/print/PrintSettingActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->b:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic d(Lcom/waiqin365/base/print/PrintSettingActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->x:Ljava/lang/String;

    return-object v0
.end method

.method private d()V
    .locals 5

    const/4 v3, 0x0

    const/4 v2, -0x2

    const/4 v4, 0x1

    const v0, 0x7f0c01da

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->d:Landroid/widget/ImageView;

    const v0, 0x7f0c0306

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->e:Landroid/widget/ImageView;

    const v0, 0x7f0c0305

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->f:Landroid/widget/TextView;

    const v1, 0x7f080481

    invoke-virtual {p0, v1}, Lcom/waiqin365/base/print/PrintSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->f:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c09d0

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->h:Landroid/widget/ListView;

    new-instance v0, Lcom/waiqin365/base/print/g;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->g:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/base/print/g;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->i:Lcom/waiqin365/base/print/g;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->h:Landroid/widget/ListView;

    new-instance v1, Lcom/waiqin365/base/print/k;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/print/k;-><init>(Lcom/waiqin365/base/print/PrintSettingActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->c:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0301d0

    invoke-virtual {v0, v1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->k:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->k:Landroid/view/View;

    const v1, 0x7f0c09cf

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->l:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->k:Landroid/view/View;

    const v1, 0x7f0c09ca

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->m:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->k:Landroid/view/View;

    const v1, 0x7f0c09c9

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->n:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->k:Landroid/view/View;

    const v1, 0x7f0c09cd

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->o:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->k:Landroid/view/View;

    const v1, 0x7f0c09ce

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->q:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->k:Landroid/view/View;

    const v1, 0x7f0c09cc

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->p:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->o:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->h:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->k:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->h:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->i:Lcom/waiqin365/base/print/g;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0301d4

    invoke-virtual {v0, v1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->t:Landroid/view/View;

    new-instance v0, Landroid/widget/PopupWindow;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->t:Landroid/view/View;

    invoke-direct {v0, v1, v2, v2, v4}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;IIZ)V

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v4}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    new-instance v1, Lcom/waiqin365/base/print/l;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/print/l;-><init>(Lcom/waiqin365/base/print/PrintSettingActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setOnDismissListener(Landroid/widget/PopupWindow$OnDismissListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->t:Landroid/view/View;

    const v1, 0x7f0c09de

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->v:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->t:Landroid/view/View;

    const v1, 0x7f0c09df

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->w:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->v:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->w:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->o:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->v:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-string/jumbo v0, "selected_print_type"

    const-wide/16 v2, 0x0

    invoke-static {p0, v0, v2, v3}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;J)J

    move-result-wide v0

    long-to-int v0, v0

    invoke-virtual {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0b004d

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v1

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->o:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->v:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->w:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->v:Landroid/widget/TextView;

    const-string/jumbo v1, "#ff9008"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    if-ne v0, v4, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->o:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->w:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->v:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->w:Landroid/widget/TextView;

    const-string/jumbo v1, "#ff9008"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0
.end method

.method static synthetic e(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/bluetooth/BluetoothDevice;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->j:Landroid/bluetooth/BluetoothDevice;

    return-object v0
.end method

.method private e()V
    .locals 4

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->e:Lcom/waiqin365/base/print/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/print/b;->c()Ljava/util/Set;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/Set;->size()I

    move-result v1

    if-lez v1, :cond_0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v2, Lcom/waiqin365/base/print/a;

    invoke-direct {v2}, Lcom/waiqin365/base/print/a;-><init>()V

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/bluetooth/BluetoothDevice;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothDevice;->getName()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/waiqin365/base/print/a;->a:Ljava/lang/String;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothDevice;->getAddress()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/waiqin365/base/print/a;->b:Ljava/lang/String;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothDevice;->getBondState()I

    move-result v0

    iput v0, v2, Lcom/waiqin365/base/print/a;->c:I

    const/4 v0, 0x1

    iput v0, v2, Lcom/waiqin365/base/print/a;->d:I

    invoke-virtual {p0, v2}, Lcom/waiqin365/base/print/PrintSettingActivity;->a(Lcom/waiqin365/base/print/a;)V

    goto :goto_0

    :cond_0
    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->e:Lcom/waiqin365/base/print/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/print/b;->e()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->l:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_1
    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->e:Lcom/waiqin365/base/print/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/print/b;->f()Z

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->l:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    return-void
.end method

.method static synthetic f(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->q:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/base/print/PrintSettingActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->b:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic i(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic j(Lcom/waiqin365/base/print/PrintSettingActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->a:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic k(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->n:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic l(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->c:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic m(Lcom/waiqin365/base/print/PrintSettingActivity;)Lcom/waiqin365/compons/view/c;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->s:Lcom/waiqin365/compons/view/c;

    return-object v0
.end method

.method static synthetic n(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic o(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic p(Lcom/waiqin365/base/print/PrintSettingActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->m:Landroid/widget/TextView;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 6

    new-instance v0, Lcom/waiqin365/base/print/m;

    invoke-direct {v0, p0}, Lcom/waiqin365/base/print/m;-><init>(Lcom/waiqin365/base/print/PrintSettingActivity;)V

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->a(Lcom/fiberhome/gaea/client/d/q;)V

    new-instance v0, Lcom/waiqin365/compons/view/c;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->c:Landroid/content/Context;

    const v2, 0x7f0806b1

    invoke-virtual {p0, v2}, Lcom/waiqin365/base/print/PrintSettingActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "\u6253\u5370\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u662f\u5426\u8fde\u63a5\u5230\u6b63\u786e\u7684\u84dd\u7259\u6253\u5370\u673a\u3002"

    sget v4, Lcom/waiqin365/compons/view/c;->b:I

    new-instance v5, Lcom/waiqin365/base/print/n;

    invoke-direct {v5, p0}, Lcom/waiqin365/base/print/n;-><init>(Lcom/waiqin365/base/print/PrintSettingActivity;)V

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->s:Lcom/waiqin365/compons/view/c;

    return-void
.end method

.method public a(Lcom/waiqin365/base/print/a;)V
    .locals 4

    const/4 v2, 0x0

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->g:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->g:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/print/a;

    iget-object v0, v0, Lcom/waiqin365/base/print/a;->b:Ljava/lang/String;

    iget-object v3, p1, Lcom/waiqin365/base/print/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v2, 0x1

    :cond_0
    if-nez v2, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->g:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->i:Lcom/waiqin365/base/print/g;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/print/g;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->i:Lcom/waiqin365/base/print/g;

    invoke-virtual {v0}, Lcom/waiqin365/base/print/g;->notifyDataSetChanged()V

    invoke-virtual {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->b()V

    :cond_1
    return-void

    :cond_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public b()V
    .locals 2

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/waiqin365/base/print/o;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/print/o;-><init>(Lcom/waiqin365/base/print/PrintSettingActivity;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public c()V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v1, "isSuccess"

    iget-boolean v2, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->y:Z

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const/4 v1, 0x0

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->setResult(ILandroid/content/Intent;)V

    invoke-virtual {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->back()V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    packed-switch p1, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    const-string/jumbo v0, "\u84dd\u7259\u5df2\u6253\u5f00"

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->e()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x3e8
        :pswitch_0
    .end packed-switch
.end method

.method public onBackPressed()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->c()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v2, 0x1

    invoke-virtual {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0b004d

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColorStateList(I)Landroid/content/res/ColorStateList;

    move-result-object v0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v1

    sparse-switch v1, :sswitch_data_0

    :cond_0
    :goto_0
    :sswitch_0
    return-void

    :sswitch_1
    invoke-virtual {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->c()V

    goto :goto_0

    :sswitch_2
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/base/print/PrintSettingStepActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/base/print/PrintSettingActivity;->overridePendingTransition(II)V

    goto :goto_0

    :sswitch_3
    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->p:Landroid/widget/LinearLayout;

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getWidth()I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setWidth(I)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v2}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->p:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->showAsDropDown(Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->q:Landroid/widget/ImageView;

    const v1, 0x7f020358

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v2}, Landroid/widget/PopupWindow;->setFocusable(Z)V

    goto :goto_0

    :sswitch_4
    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->o:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->v:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->w:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->v:Landroid/widget/TextView;

    const-string/jumbo v1, "#ff9008"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    :cond_1
    const-string/jumbo v0, "selected_print_type"

    const-wide/16 v2, 0x0

    invoke-static {p0, v0, v2, v3}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/lang/String;J)V

    goto :goto_0

    :sswitch_5
    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->o:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->w:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->v:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->w:Landroid/widget/TextView;

    const-string/jumbo v1, "#ff9008"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->u:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    :cond_2
    const-string/jumbo v0, "selected_print_type"

    const-wide/16 v2, 0x1

    invoke-static {p0, v0, v2, v3}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/lang/String;J)V

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c01da -> :sswitch_1
        0x7f0c0305 -> :sswitch_0
        0x7f0c0306 -> :sswitch_2
        0x7f0c09cd -> :sswitch_3
        0x7f0c09de -> :sswitch_4
        0x7f0c09df -> :sswitch_5
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f0301d1

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->setContentView(I)V

    iput-object p0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->c:Landroid/content/Context;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->g:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->d()V

    invoke-virtual {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->a()V

    new-instance v0, Landroid/content/IntentFilter;

    const-string/jumbo v1, "android.bluetooth.device.action.FOUND"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->z:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    new-instance v0, Landroid/content/IntentFilter;

    const-string/jumbo v1, "android.bluetooth.adapter.action.DISCOVERY_FINISHED"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->z:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    const-string/jumbo v0, "\n"

    invoke-static {p0, v0}, Lcom/fiberhome/gaea/client/d/k;->c(Landroid/content/Context;Ljava/lang/String;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v0, v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->e:Lcom/waiqin365/base/print/b;

    invoke-virtual {v0}, Lcom/waiqin365/base/print/b;->b()Z

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    invoke-direct {p0}, Lcom/waiqin365/base/print/PrintSettingActivity;->e()V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v1, "android.bluetooth.adapter.action.REQUEST_ENABLE"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const/16 v1, 0x3e8

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/base/print/PrintSettingActivity;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0
.end method

.method protected onDestroy()V
    .locals 1

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    iget-object v0, p0, Lcom/waiqin365/base/print/PrintSettingActivity;->z:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/waiqin365/base/print/PrintSettingActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    const/4 v0, 0x0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->a(Lcom/fiberhome/gaea/client/d/q;)V

    return-void
.end method

.method protected onStart()V
    .locals 0

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onStart()V

    return-void
.end method
